<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>IT服务支持平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

	</head>
	<body id="main_body" >
	
	<div id="form_container">
		<h2>工作处理</h2>
		<form  method="post" action="wx/operationWork/handle/${work.id}">
			<div >
				<p>${user.userName}，您好！</p>
				<p>您要处理的工作内容如下：</p>
				<input type="hidden" name="engineer" value="${user.userId}" />
			</div>	
			<hr  style="background-color:#000000;border:0;height:2px;"/>					
			<ul >
				<li id="li_1" >
					<label >工作编号 ：${work.workNo}</label>
				</li>
				<li id="li_1" >
					<label >申请人 ：${work.trueName}</label>
				</li>
				<li id="li_1" >
					<label >部门 ：${work.departmentName}</label>
				</li>
				<li id="li_1" >
					<label >报障时间：${work.startTime}</label>
				</li>
				<li id="li_2" >
					<label >工作描述: </label>
					<div>
						${work.describe}
					</div> 
				</li>
				
				<c:if test="${!empty work.equipment}">
				<li id="li_2" >
					<label >设备编号: ${work.equipment.equiId}</label>
				</li>
				<li id="li_2" >
					<label >保管人:${keeper.userName}</label>
				</li>
				<li id="li_2" >
					<label >保管人部门: ${keeper.department.longDeptname}</label>
				</li>
				<li id="li_2" >
					<label >设备地点: ${work.equipment.place}</label>
				</li>
				</c:if>
				
				<li id="li_2" >
					<label >工作描述(可丰富): </label>
					<div>
						<textarea rows="6" cols="30" name="describe">${work.describe}</textarea> 
					</div> 
				</li>
				
				<c:if test="${!empty work.picUrl}">
				<li id="li_2" >
					<label >故障图片: </label>
					<div>
						<img src="${work.picUrl}" style="width:200px;height:200px;" /> 
					</div> 
				</li>
				</c:if>
				
				<li id="li_2" >
					<label >处理时长: </label>
					<div>
						<input type="text" name="duration"/>
					</div> 
				</li>
				<li id="li_2" >
					<label >处理内容: </label>
					<div>
						<textarea rows="6" cols="30" name="content"></textarea> 
					</div> 
				</li>
				<li id="li_1" >
					<label >处理状态</label>
					<div>
						<select  name="state">
						  <option value ="4">完成</option>
						  <option value ="3">挂起</option>
						  <option value ="1">转移</option>
						</select>
					</div> 
				</li>
				<li id="li_1" >
					<label >转移对象</label>
					<div>
						<select  name="username">
						  <option value =""></option>
						  <c:forEach items="${engineers}" var="item"  varStatus="xh"> 
						  <option value ="${item.userId}">${item.userName}</option>
						  </c:forEach>  
						</select>
					</div> 
				</li>
			
			
				<li class="buttons">
			    <input type="submit" name="submit" value="提交" />
				</li>
			</ul>
		</form>	
		
	</div>
	</body>
</html>